import request from '@/utils/request'

// 查询客户报价库列表
export function listKhbjk(query) {
  return request({
    url: '/gd/khbjk/list',
    method: 'get',
    params: query
  })
}

// 查询客户报价库详细
export function getKhbjk(id) {
  return request({
    url: '/gd/khbjk/' + id,
    method: 'get'
  })
}

// 导入客户报价库
export function importData(data) {
  return request({
    url: '/gd/khbjk/importData',
    method: 'post',
    data: data
  })
}

// 新增客户报价库
export function addKhbjk(data) {
  return request({
    url: '/gd/khbjk',
    method: 'post',
    data: data
  })
}

// 修改客户报价库
export function updateKhbjk(data) {
  return request({
    url: '/gd/khbjk',
    method: 'put',
    data: data
  })
}

// 删除客户报价库
export function delKhbjk(id) {
  return request({
    url: '/gd/khbjk/' + id,
    method: 'delete'
  })
}
